//
//  LGDeviceSendLogisticsView.m
//  HeartDiseaseManage
//
//  Created by 1234 on 2023/11/9.
//

#import "LGDeviceSendLogisticsView.h"

@interface LGDeviceSendLogisticsView()
/**   */
@property (nonatomic , strong)UILabel *nameTitle;

/**   */
@property (nonatomic , strong)UILabel *numberTitle;


@end

@implementation LGDeviceSendLogisticsView

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self.titleBtn setTitle:@"发货物流信息" forState:UIControlStateNormal];
        [self.titleBtn setImage:[UIImage imageNamed:@"设备发货-发货物流信息"] forState:UIControlStateNormal];
        [self addSubview:self.nameTitle];
        [self addSubview:self.nameTF];
        [self addSubview:self.numberTitle];
        [self addSubview:self.numberTF];
    }
    return self;
}

#pragma mark
#pragma mark ====> 创建控件
-(UILabel *)nameTitle{
    if(!_nameTitle){
        _nameTitle = [UILabel lableWithText:@"物流品牌" colorString:@"#333333" textFont:LGFont(15) textAlignment:NSTextAlignmentLeft lines:1];
        _nameTitle.frame = CGRectMake(viewPix(12), viewPix(45), Screen_W-viewPix(56), viewPix(21));
    }
    return _nameTitle;
}

-(UITextField *)nameTF{
    if(!_nameTF){
        _nameTF = [[UITextField alloc]initWithFrame:CGRectMake(viewPix(12), viewPix(75), Screen_W-viewPix(56), viewPix(36))];
        _nameTF.backgroundColor = [UIColor colorWithString:@"#F7F9FB"];
        _nameTF.tintColor = [UIColor colorWithString:@"#333333"];
        _nameTF.textColor = [UIColor colorWithString:@"#333333"];
        _nameTF.textAlignment = NSTextAlignmentLeft;
        _nameTF.keyboardType = UIKeyboardTypeDefault;
        _nameTF.placeholder = @"请输入物流品牌";
        _nameTF.font = LGFont(15);
        _nameTF.cornerRidus = 5;
        _nameTF.leftViewMode = UITextFieldViewModeAlways;
        _nameTF.leftView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, viewPix(8), viewPix(36))];
    }
    return _nameTF;
}

-(UILabel *)numberTitle{
    if(!_numberTitle){
        _numberTitle = [UILabel lableWithText:@"物流单号" colorString:@"#333333" textFont:LGFont(15) textAlignment:NSTextAlignmentLeft lines:1];
        _numberTitle.frame = CGRectMake(viewPix(12), viewPix(123), Screen_W-viewPix(56), viewPix(21));
    }
    return _numberTitle;
}

-(UITextField *)numberTF{
    if(!_numberTF){
        _numberTF = [[UITextField alloc]initWithFrame:CGRectMake(viewPix(12), viewPix(152), Screen_W-viewPix(56), viewPix(36))];
        _numberTF.backgroundColor = [UIColor colorWithString:@"#F7F9FB"];
        _numberTF.tintColor = [UIColor colorWithString:@"#333333"];
        _numberTF.textColor = [UIColor colorWithString:@"#333333"];
        _numberTF.textAlignment = NSTextAlignmentLeft;
        _numberTF.keyboardType = UIKeyboardTypeDefault;
        _numberTF.placeholder = @"请输入物流品牌";
        _numberTF.font = LGFont(15);
        _numberTF.cornerRidus = 5;
        _numberTF.leftViewMode = UITextFieldViewModeAlways;
        _numberTF.leftView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, viewPix(8), viewPix(36))];
    }
    return _numberTF;
}

@end
